package com.hujesse;

import com.myRibbonRule.HujsseRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@EnableEurekaClient
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
//在微服务启动的时候就能加载自定义的Ribbon类(自定义的规则会覆盖原有默认的规则)
@RibbonClient(name = "springcloud-provider-dept",configuration = HujsseRule.class)
public class DeptConsumer9000 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer9000.class,args);
    }
}
